package com.org.manhu.chargehelper.ui;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.org.manhu.chargehelper.R;
import com.org.manhu.chargehelper.tools.ApkInfoUtils;
import com.org.manhu.chargehelper.tools.AppManager;

/**
 * @文件名：AboutActivity.java
 * @包名：com.org.manhu.chargehelper.ui
 * @作者：李朋辉 @QQ：892839211
 * @创建时间：2015年3月5日 上午9:52:57
 *
 * @描述：
 */
public class AboutActivity extends Activity {

	private TextView versionTv;
	private RelativeLayout userInfoLayout;
	private ImageView backIv;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_about);
		
		AppManager.getAppManager().addActivity(this);
		
		versionTv = (TextView) findViewById(R.id.about_appversion);
		userInfoLayout = (RelativeLayout) findViewById(R.id.user_info);
		backIv = (ImageView) findViewById(R.id.title_back);
		userInfoLayout.setVisibility(View.GONE);
		versionTv.setText(ApkInfoUtils.getVersionName());
		
		backIv.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				AboutActivity.this.finish();
			}
		});
	}

}
